package com.stu.action.permission;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.stu.action.base.BaseAction;
import com.stu.entity.permission.PermissionUser;
import com.stu.service.permission.IPermissionUserService;
import com.stu.utils.CommonUtils;

@Controller
@Scope("prototype")
public class PermissionUserAction extends BaseAction<PermissionUser, IPermissionUserService> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public String login(){
		String logincode=model.getLoginCode();
		String loginpwd=model.getLoginPwd();
		try {
			PermissionUser curUser=null;
			if(curUser!=null){
				CommonUtils.setSessionAttribute("currentUser", curUser);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return "";
	}
	
	public String logout(){
		CommonUtils.removeSession();
		return "";
	}
	
	public String list(){
		
		return "";
	}

}
